import { request} from '@/utils/request.util';
import type {Root,DeptListRoot} from '@/types/root'
import type { Pagination } from '@/types/pagination';
import type { Response, Res } from '@/types/common';

import type {RegisterMoneyTable,RegisterMoneyInfo,RegisterForm,RegisterMoneyResponse} from '@/types/registerMoney'



//查看挂号费列表
export const getDoctorFeeList =  (body:RegisterForm) => request.get<RegisterMoneyResponse> ("/project/fee/getDoctorFeeList", {
  params: body
});   

//新增挂号费
export const addDoctorFee = (body: RegisterMoneyInfo) => request.post<Response<Res>>("/project/fee/addDoctorFee",body);

//编辑挂号费
export const updateDoctorFee = (body: RegisterMoneyInfo) => request.post<Response<Res>>("/project/fee/updateDoctorFee",body);

//删除挂号费
export const deleteDoctorFee = (doctorId:string) => request.post<Response<Res>>("/project/fee/deleteDoctorFee",{doctorId});


